using System;
using System.Collections.Generic;
using System.Text;
using Common.Utilities.Dispatcher;

namespace Common.Utilities.Transform
{
    /// <summary>
    /// 
    /// </summary>
    public interface IDataConverter
    {
        /// <summary></summary>
        bool CanConvertFrom(Type srcType);
        /// <summary></summary>
        Type TargetDataType{ get;}

        /// <summary>
        /// 
        /// </summary>
        /// <param name="outputFromUpstreamComponent"></param>
        /// <returns></returns>
        InstructionBase Format(ResultBase outputFromUpstreamComponent);
    }
}
